package dev.polls.skycube;

import android.app.Activity;
import android.os.Bundle;
import android.widget.LinearLayout;
import android.widget.TextView;

public class FileActivity extends Activity {
	LinearLayout linear;
	private static FileInfo curFile = new FileInfo();
	
	 
	public void onCreate(Bundle savedInstanceState) {
		
		super.onCreate(savedInstanceState);
		setContentView(R.layout.file);    
		
		final TextView tv = (TextView)findViewById(R.id.textView3);
		tv.setBackgroundResource(R.drawable.bg_butt_h);
	}
	
	@Override  
	protected void onResume()
	{
		super.onResume();
		String text = Integer.toString(curFile.getMessageId());
		TextView message = (TextView)findViewById(R.id.textView2);
		message.setText(text);
	}
	
	public static void setFile(FileInfo file)
	{
		curFile = file;
	}
	public static FileInfo getFile()
	{
		return curFile;
	}
}
